<div id="page-content">
	<div class="col-lg-12">
		<div class="panel">
			<div class="panel-heading">
				<h3 class="panel-title" style="text-align: right;">
					#@installPJaxGoBackBtn()
					#@installFlowHisBtn(defId,procInsId)
					#@installAttachment(o?o.id:'')
				</h3>
			</div>
			#@buildFormPanelContainer("通用申请单","/WEB-INF/admin/oa/apply/common/editForm.html")
			#@buildWorkFlowHisTable(procInsId,hislist)
		</div>
	</div>
</div>
<script>
	function save(){
		var data = common_ajax.ajaxFunc("/admin/oa/apply/common/save", $('#editForm').serialize(), "json", null);
		if(data.success){
			pointLion.alertMsg("保存成功!" , "success" , "small" , function(){
				location.href = ctx+'/admin/oa/apply/common/getListPage';//跳转到列表页
			},data);
		}else{
			pointLion.alertMsg(data.message , "danger" , "small" , function(){
				$(".btn").removeAttr("disabled");
			},data);
		}
	}
</script>